<template>
	<view class="pending-order-item">
		<view class="pending-order-header">
			<text class="title">订单类型：运输/这是一个搬家订单，测试订单标题长度</text>
			<text class="tag">我是标签</text>
		</view>
		<view class="pending-order-detail">
			<view class="pending-order-detail-item">
				<text>下单人</text>
				<text>用户：张天师</text>
			</view>
			<view class="pending-order-detail-item">
				<text>价格策略</text>
				<text>固定价格</text>
			</view>
			<view class="pending-order-detail-item">
				<text>订单金额</text>
				<text class="order-money">￥1000</text>
			</view>
		</view>
		<view class="pending-order-detail-bottom">
			<text>2024/05/10 10:23:01</text>
			<text>详情></text>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			item: {
				type: Object,
				default: () => null
			},
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
.pending-order-item{
	display: flex;
	flex-direction: column;
	padding:0 32rpx;
	border-radius: 12rpx;
	margin-bottom: 24rpx;
	overflow: hidden;
	background-color: white;
}
.pending-order-header{
	display: flex;
	align-items: center;
	justify-content: space-between;
	width:100%;
	box-sizing: border-box;
	padding:24rpx 0;
	border-bottom: 1px solid #E7E7E7;
	.title{
		font-size: 30rpx;
		line-height: 48rpx;
		flex:1;
		margin-right: 20rpx;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		color: #111111;
	}
	.tag{
		display: flex;
		padding: 8rpx 20rpx;
		border-radius: 26rpx;
		font-size: 28rpx;
		color: #287EFF;
		background-color: rgba(40, 126, 255, 0.14);
	}
}
.pending-order-detail{
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid #E7E7E7;
}
.pending-order-detail-item{
	display: flex;
	justify-content: space-between;
	margin-bottom: 16rpx;
	line-height: 40rpx;
	&:nth-of-type(1){
		margin-top: 20rpx;
	}
	&:nth-last-of-type(1){
		margin-bottom: 20rpx;
	}
	text{
		font-size: 28rpx;
		color: #666666;
		&:nth-of-type(2){
			color: #111111;
		}
	}
	.order-money{
		font-weight: bold;
	}
}
.pending-order-detail-bottom{
	display: flex;
	justify-content: space-between;
	padding: 24rpx 0;
	text{
		font-size: 28rpx;
		color: #666666;
		&:nth-of-type(2){
			color: #287EFF;
		}
		.iconfont{
			color: #287EFF;
		}
	}
}
</style>
